package com.yxx.service;

import com.yxx.entityModel.vo.Result.PageResult;
import com.yxx.entityModel.vo.query.FriendQuery;
import com.yxx.entityModel.vo.request.FriendRequest;
import com.yxx.entityModel.vo.response.FriendBackResponse;
import com.yxx.entityModel.vo.response.FriendResponse;

import java.util.Collection;
import java.util.List;

/**
 * @author yuxiangxun
 * @date 2025/1/31
 * @apiNote
 */
public interface FriendService {
    /**
     * 查看友链列表
     * @return
     */
    List<FriendResponse> friendListVO();

    /**
     * 查看后台友链列表
     * @param friendQuery
     * @return
     */
    PageResult<FriendBackResponse> friendListBackVO(FriendQuery friendQuery);

    /**
     * 添加友链
     * @param friendRequest
     */
    void addFriend(FriendRequest friendRequest);

    /**
     * 删除友链
     * @param friendIdList
     */
    boolean removeByIds(Collection<?> friendIdList);

    /**
     * 修改友链
     * @param friendRequest
     */
    void updateFriend(FriendRequest friendRequest);
}
